module.exports = {
  devServer: {
    proxy: {
      '/map-api': {
        target: 'https://apis.map.qq.com',
        changeOrigin: true,
        pathRewrite: {
          '^/map-api': ''
        },
        headers: {
          Referer: 'https://lbs.qq.com'
        }
      },
      '/api-server': {
        target: "http://120.76.99.113:7107",
        changeOrigin: true,
        pathRewrite: {
          '^/api-server': ''
        }
      },
    },
    headers: {
      "Access-Control-Allow-Origin": "http://localhost:8081",
      "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
      "Access-Control-Allow-Headers": "X-Requested-With, content-type, Authorization",
      "Access-Control-Allow-Credentials": "true"
    }
  }
} 
